package com.ysl.study.designpattern.structure.bridging;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

import java.math.BigDecimal;

/**
 * 桥接模式
 * 支付类型桥接抽象类
 * @author yangshanlin
 * @date 2023/3/14 17:48
 * @describe
 */
public abstract class Pay {

    protected Logger logger = LoggerFactory.getLogger(Pay.class);

    protected IPayMode payMode;

    public Pay(IPayMode payMode) {
        this.payMode = payMode;
    }

    public abstract String transfer(String uId, String tradeId, BigDecimal amount);
}
